<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStoresTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('stores', function (Blueprint $table) {
            $table->increments('id');
            $table->string('desc');     //仓库描述
            $table->string('area');     //区域名称
            $table->string('store');     //货柜名称
            $table->string('cell');     //存储位置名称
            $table->boolean('state');        //库存状态
            $table->text('remark');     //备注信息
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('stores');
    }
}
